package com.lbs.jiepiaisi.bean;

import android.annotation.SuppressLint;

import com.lbs.jiepiaisi.base.BaseResponseEntity;

import java.io.Serializable;
import java.util.List;

/**
 * Created by yu on 2020-06-02 09:18.
 * Description:
 */
public class TracingBean extends BaseResponseEntity {
    public List<Result> result;

    public List<Result> getResult() {
        return result;
    }
    public void setResults(List<Result> result) {
        this.result = result;
    }

    public static class Result implements Serializable {
        private String eqNo;
        private int speed;
        private String importTime;
        private double gdLng;
        private double gdLat;
        private float dir;
        private String postType;
        private String status;
        private String positionTime;

        public String getPositionTime() {
            return positionTime;
        }
        public void setPositionTime(String positionTime) {
            this.positionTime = positionTime;
        }

        public String getPostType() {
            return postType;
        }
        public void setPostType(String postType) {
            this.postType = postType;
        }

        public String getStatus() { return status; }
        public void setStatus(String status) {
            this.status = status;
        }

        public float getDir() {
            return dir;
        }
        public void setDir(float dir) {
            this.dir = dir;
        }

        public String getEqNo() {
            return eqNo;
        }
        public void setEqNo(String eqNo) {
            this.eqNo = eqNo;
        }

        public int getSpeed() {
            return speed;
        }
        public void setSpeed(int speed) {
            this.speed = speed;
        }

        public String getImportTime() {
            return importTime;
        }
        public void setImportTime(String importTime) {
            this.importTime = importTime;
        }

        public double getGdLng() {
            return Double.parseDouble(String.format("%.6f",gdLng));
        }
        public void setGdLng(double gdLng) {
            this.gdLng = gdLng;
        }

        @SuppressLint("DefaultLocale")
        public double getGdLat() {/** 截取小数点后6位*/
            return Double.parseDouble(String.format("%.6f",gdLat));
        }
        public void setGdLat(double gdLat) {
            this.gdLat = gdLat;
        }
    }
}
